﻿using System;
using System.Collections.ObjectModel;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class TypeDeclarationCollection : Collection<ITypeDeclaration>, ITypeDeclarationCollection
    {
        #region Lifecycle

        public TypeDeclarationCollection(Mono.Collections.Generic.Collection<Mono.Cecil.TypeDefinition> collection)
        {
            foreach (var item in collection)
            {
                this.Add(new TypeDeclaration(item));
            }
        }

        #endregion Lifecycle

        #region ITypeDeclarationCollection Members

        public void AddRange(System.Collections.ICollection value)
        {
            throw new NotImplementedException();
        }

        public new void Remove(ITypeDeclaration value)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
